package com.study.annotation.example;

/**
* @Name: Student
* @Description: 学生基本信息类，通过使用自定义注解，完成ORM映射
* @Author: 李超	lc_jack@foxmail.com
* @CreateDate: 2017-1-19 上午10:53:49 
* @Version: V1.0
*/
@TableAnnotation(value="tb_student")	//标注类对应的表名称
public class Student {
	
	@FieldAnnotation(name="stuID", type="int", length=10) //标注类属性对应的表字段名称、类型与长度
	private int stuID ;
	
	@FieldAnnotation(name="stuName", type="varchar", length=10) //标注类属性对应的表字段名称、类型与长度
	private String stuName ;
	
	@FieldAnnotation(name="stuAge", type="int", length=3) //标注类属性对应的表字段名称、类型与长度
	private int stuAge ;
	
	public int getStuID() {
		return stuID;
	}
	public void setStuID(int stuID) {
		this.stuID = stuID;
	}
	public String getStuName() {
		return stuName;
	}
	public void setStuName(String stuName) {
		this.stuName = stuName;
	}
	public int getStuAge() {
		return stuAge;
	}
	public void setStuAge(int stuAge) {
		this.stuAge = stuAge;
	}
	
}
